package com.yxp.webtest.service.impl;

import com.yxp.webtest.bean.User;
import com.yxp.webtest.service.UserService;
import org.springframework.stereotype.Controller;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Controller
public class UserServiceImpl implements UserService {

    public List<User> queryUserList() {
        User user1 = new User("yxp1", 11, new Date());
        User user2 = new User("yxp2", 12, new Date());
        List<User> userList = new ArrayList<User>();
        userList.add(user1);
        userList.add(user2);
        return userList;
    }
}
